<template>
  <div class="app-container">
    <el-tabs v-model="activeName" type="card" class="demo-tabs">
      <el-tab-pane
        label="待打印订单"
        name="unPrinted"
        v-hasPermi="['outOrder:outOrder:outOrderList']"
      >
        <UnPrinted v-if="activeName === 'unPrinted'"></UnPrinted>
      </el-tab-pane>
      <el-tab-pane
        label="已分配波次订单"
        name="allocation"
        v-hasPermi="['outOrder:outOrder:allocationList']"
      >
        <Allocation v-if="activeName === 'allocation'"></Allocation>
      </el-tab-pane>
      <el-tab-pane
        label="已打印订单"
        name="printed"
        v-hasPermi="['outOrder:outOrder:outOrderList']"
      >
        <Printed v-if="activeName === 'printed'"></Printed>
      </el-tab-pane>
      <!-- <el-tab-pane
        label="已发货订单"
        name="shipped"
        v-hasPermi="['outOrder:outOrder:outOrderList']"
      >
        <Shipped v-if="activeName === 'shipped'"></Shipped>
      </el-tab-pane> -->
      <el-tab-pane label="待打包订单" name="toPacked">
        <ToPacked v-if="activeName === 'toPacked'"></ToPacked>
      </el-tab-pane>
      <el-tab-pane label="已出库订单" name="outbound">
        <Outbound v-if="activeName === 'outbound'"></Outbound>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup>
import { ref } from "vue";
import UnPrinted from "./components/unPrinted.vue";
import Allocation from "./components/allocation.vue";
import Printed from "./components/printed.vue";
import Shipped from "./components/shipped.vue";
import ToPacked from "./components/toPacked.vue";
import Outbound from "./components/outbound.vue";

const activeName = ref("unPrinted");
</script>

<style scoped lang="scss">
.app-container {
  padding: 0;
  height: calc(100vh - 90px);
}
</style>
